package com.neno.producer.many;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author: root
 * @Date: 2018/11/10 5:06
 */
@Component
public class NeoProducer1 {
    @Autowired
    private AmqpTemplate rabbitTemplate;

    public void sender(int i) {
        String context = "spirng boot neo queue" + " ****** " + i;
        System.out.println("Sender2 : " + context);
        this.rabbitTemplate.convertAndSend("neoQuene", context);
    }
}
